﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ManageDivision.aspx.vb"
    Inherits="Arwani.Backend_ManageDivision" %>

<%@ Register Src="Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title> Arwani Backend Panel</title>
    <link href="../css/admin/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="tablecontent">
        <table border="0" cellpadding="2" cellspacing="2" width="100%" align="center">
            <tr>
                <td align="center">
                    <uc1:Menu ID="Menu1" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="right" style="padding-right:300px;">
                    <asp:LinkButton ID="lnkAddNewDivision" runat="server">Add New Division</asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td align="center" style="height: 5px">
            <asp:Label ID="lblHeading" runat="server" Font-Size="XX-Large" 
                Font-Underline="True" ForeColor="Black">Divisions</asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center">
                    <asp:DataGrid ID="dgDivision" runat="server" AutoGenerateColumns="False"
                        AllowPaging="True" CellPadding="4" ForeColor="#333333" GridLines="None"  CssClass="table">
                        <AlternatingItemStyle BackColor="White" />
                        <Columns>
                            <asp:TemplateColumn HeaderText="Background Image">
                                <ItemTemplate>
                                    <asp:Image ID="imgBackground" Width="100" Height="75" ImageUrl='<%#getOtherImage(DataBinder.Eval(Container.DataItem,"backgroundimage")) %>'
                                        runat="server" />
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn HeaderText="Header Image" Visible="false">
                                <ItemTemplate>
                                    <asp:Image ID="imgHeader" Width="100" Height="75" ImageUrl='<%#getOtherImage(DataBinder.Eval(Container.DataItem,"header_image")) %>'
                                        runat="server" />
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn HeaderText="Division Image">
                                <ItemTemplate>
                                    <asp:Image ID="imgDivision" Width="100" Height="75" ImageUrl='<%#getImage(DataBinder.Eval(Container.DataItem,"divisionpic")) %>'
                                        runat="server" />
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:BoundColumn DataField="divisionid" HeaderText="Division ID"></asp:BoundColumn>
                            <asp:BoundColumn DataField="divisiontitle" HeaderText="Division Name"></asp:BoundColumn>
                            <asp:TemplateColumn>
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkCategory" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"divisionid") %>'
                                        CommandName="Category">Manage Category</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn Visible="false">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkBrand" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"divisionid") %>'
                                        CommandName="Brands">Manage Brands</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn>
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkSlider" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"divisionid") %>'
                                        CommandName="Slider">Manage Slider</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateColumn>

                            <asp:TemplateColumn>
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkEdit" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"divisionid") %>'
                                        CommandName="Edit">Edit</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                        </Columns>
                        <EditItemStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle Font-Bold="True" BackColor="#507CD1" ForeColor="White" />
                        <ItemStyle BackColor="#EFF3FB" />
                        <PagerStyle HorizontalAlign="Center" Mode="NumericPages" VerticalAlign="Middle" 
                            BackColor="#2461BF" ForeColor="White" />
                        <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    </asp:DataGrid>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
